<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>アイテム入れ替え</title>

<link href="../jQuery/css/jquery-ui.css" rel="stylesheet" type="text/css" />
<style>
#sortable1 {
	list-style-type: none;
	margin: 0;
	padding: 0;
	width: 700px;
}

#sortable1 li {
	margin: 3px 3px 3px 0;
	padding: 5px;
	float: left;
	width: 120px;
	height: 150px;
	font-size: 1em;
	text-align: left;
}
</style>
<script src="../jQuery/js/jquery-1.7.1.min.js" type="text/javascript"></script>
<script src="../jQuery/js/jquery-ui-1.8.18.custom.min.js" type="text/javascript"></script>
<script>
	$(function() {
		var sortable1 = $("#sortable1").sortable({
			//connectWith : 'tbody tr td.image',
			placeholder : 'ui-state-highlight',
			revert : 300, // 要素の吸着にアニメーション（時間）をかける
			opacity:0.7,
		}).disableSelection();
	});
</script>
</head>
<body>
	<h2>イメージ入れ替え（list）</h2>
	<p>D&amp;Dで要素が移動できる。枠が移動する版</p>
	<ul id="sortable1">
		<li class="ui-state-default">1<div><img id="pic001" height="100px" src="../images/ikd.jpg" /><br />ikd.jpg</div></li>
		<li class="ui-state-default">2</li>
		<li class="ui-state-default">3</li>
		<li class="ui-state-default">4</li>
		<li class="ui-state-default">5</li>
		<li class="ui-state-default">6</li>
		<li class="ui-state-default">7</li>
		<li class="ui-state-default">8</li>
		<li class="ui-state-default">9</li>
		<li class="ui-state-default">10</li>
	</ul>
	<div style="clear: both" />
</body>
</html>